﻿@model SimplCommerce.Module.Comments.Areas.Comments.ViewModels.CommentForm

<form id="form-addcomment" asp-area="Comments" asp-controller="Comment" asp-action="AddComment" method="post" role="form">
    <input asp-for="EntityId" type="hidden" />
    <input asp-for="EntityTypeId" type="hidden" />
    <div asp-validation-summary="All" class="text-danger"></div>
    <div class="form-group row">
        <label asp-for="CommentText" class="col-md-4 col-form-label">@Localizer["Comment"]</label>
        <div class="col-md-8">
            <textarea asp-for="CommentText" class="form-control"></textarea>
            <span asp-validation-for="CommentText" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group row">
        <label asp-for="CommenterName" class="col-md-4 col-form-label">@Localizer["Posted by"]</label>
        <div class="col-md-8">
            <input asp-for="CommenterName" class="form-control" />
            <span asp-validation-for="CommenterName" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group row">
        <div class="offset-md-4 col-md-8">
            <button id="btn-addcomment" type="submit" class="btn btn-primary">@Localizer["Submit comment"]</button>
        </div>
    </div>
</form>
